#!/bin/bash

echo "use 'celery info' to show info message"

if [ "$1" == "beat" ]; then
  if [ "$2" == "info" ]; then
    python -m celery -A PaperFives beat -l info
  else
    python -m celery -A PaperFives beat
  fi
elif [ "$1" == "info" ]; then
  python -m celery -A PaperFives worker -l info
else
  python -m celery -A PaperFives worker
fi
